<?php
require_once "../class/fenajax.class.php";
include "../dyn/connexion.php";

$f = newFen(__FILE__,"Liste des utilisateurs",4);

$f->displayHeader();


$res = mysql_query("SELECT id,nom,prenom,pseudo FROM Utilisateur ORDER BY pseudo;");

echo "<table id=\"data un\" class=\"tab-tab\">
		<tr class=\"ui-tabs-nav ui-accordion ui-state-default tab-title\">
			<th>Pseudo</th>
			<th>Nom</th>
			<th>Prénom</th>
			<th>Modifier</th>
		</tr>
		";

while($row = mysql_fetch_array($res)) {
	echo "<tr class=\"tab-data\" >
			<td>".$row["pseudo"]."</td> 
			<td>".$row["nom"]."</td>
			<td>".$row["prenom"]."</td>
			<td>
				<a href =\"#un\" id=\"newModif\" onclick=\"formulaireAdminUsers(event)\"><img id=\"".$row['id']."\" src=\"../images/modifier.png\"  alt=\"Modifier\" title=\"Modifier cet utilisateur\"/></a>
			</td>
		</tr>";
}

echo "</table>";


$f->displayFooter();
?>